package com.yinhe.music.yhmusic.model;

/**
 * 我的功能列表
 *
 * @author hasee
 * @date 2017/8/23
 */

public class HeaderBean {
    /**
     * 功能名称
     */
    private String title;
    /**
     * 条目数量
     */
    private int count;
    /**
     * 功能图片
     */
    private int avatar;
    /**
     * 红点提示
     */
    private boolean showRedPoint = false;

    public HeaderBean(String title, int count, int avatar) {
        this.title = title;
        this.count = count;
        this.avatar = avatar;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCount() {
        if (count == 0) {
            return "";
        } else {
            return String.valueOf(count);
        }
    }

    public void setCount(int count) {
        this.count = count;
    }

    public void clearCount() {
        count = 0;
    }

    public int getAvatar() {
        return avatar;
    }

    public void setAvatar(int avatar) {
        this.avatar = avatar;
    }

    public boolean isShowRedPoint() {
        return showRedPoint;
    }

    public void setShowRedPoint(boolean showRedPoint) {
        this.showRedPoint = showRedPoint;
    }
}
